package com.bch.myblog.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bch.myblog.domain.User;
import com.bch.myblog.mappers.UserMapper;

@Service("userService")
public class UserServiceImpl implements IUserService{
	@Autowired  
    private UserMapper userMapper;  
	
    @Override  
    public User getUserById(int userId) {  
        return this.userMapper.selectByPrimaryKey(userId);  
    }
}
